|
|
|
|
|
|
|
The equations also work when the center of projection lies between a point and the plane of projection. This can produce weird results. Generally, you can think of yourself as standing at the center of projection looking toward a screen that lies in the plane of projection. Unfortunately, objects that are behind you will also appear on the screen. If those objects are close behind you, their perspective projections may also appear quite large and distorted. |
|
|
|
|
|
|
|
|
Even worse, if a point lies directly to the side, at the same distance from the screen as your eye, the equations for the point's new coordinates cause a divide-by-zero error. When you project along the Z axis onto the X-Y plane, for example, the point's new coordinates are given by the equations: |
|
|
|
 |
|
|
|
|
new_x = d * (old_y) / (d - (old_z))
new_y = d * (old_x) / (d - (old_z))
new_z = 0 |
|
|
|
|
|
|
|
|
If the point is right beside you, d = old_z, so (d (old_z)) = 0, and you cannot compute the new X and Y coordinates. |
|
|
|
|
|
|
|
|
Figure 13.22 shows several different triangles and their projections. The top and bottom projectionsthose of the triangle beyond the plane of projection and of the triangle between the center and plane of projection-are meaningful. The projection of the triangle behind the center of projection is upside down and is probably not meaningful. The projection of the point that lies beside the center of projection does not exist. |
|
|
|
|
|
|
|
|
Figure 13.23 shows a perspective transformation of a cube in which the center of projection was within the cube. The three lines drawn in bold meet at the corner of the cube that is furthest from the center of projection. The point behind the center of projection is projected fairly close to that corner. The other points are almost the same distance from the origin as the center of projection is, so their projections are quite strange. This results in a somewhat bizarre picture having little resemblance to a cube. |
|
|
|
|
|
|
|
|
Figure 13.22
Perspective projections. |
|
|
|
|
|